package loveqq.niceexcel.test.dto;

import lombok.Data;
import loveqq.niceexcel.annotation.ExcelEnd;
import loveqq.niceexcel.annotation.ExcelHead;
import loveqq.niceexcel.annotation.Position;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhongjh@tsintergy.com
 * @date 2022-08-16
 */
@Data
@ExcelEnd(row = "用电侧")
public class EleDTO {

    @ExcelHead(row = "时间")
    private Date date;

    @ExcelHead(column = "项目信息", columnPosition = @Position(index = 1, size = 3))
    @ExcelHead(column = "项目信息", columnPosition = @Position(index = 1, size = 2))
    private String project;

    @ExcelHead(column = "项目信息", columnPosition = @Position(index = 2, size = 3))
    private String contract;

    @ExcelHead(column = "项目信息", columnPosition = @Position(index = 3, size = 3))
    @ExcelHead(column = "项目信息", columnPosition = @Position(index = 2, size = 2))
    private String type;

    @ExcelHead(column = "电量")
    private BigDecimal energy;

    @ExcelHead(column = "电价")
    private BigDecimal price;

    @ExcelHead(column = "电费")
    private BigDecimal charge;

}
